package com.token.model.dto;

import com.token.annotation.JsonDesensitization;
import com.token.enums.DesensitizationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @auther: henriy
 * @Date: 2023/11/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private Long userId;

    private String userName;

    /**
     * 手机号
     */
    @JsonDesensitization(DesensitizationType.MOBILE)
    private String phone;

    /**
     * 邮箱
     */
    @JsonDesensitization(DesensitizationType.EMAIL)
    private String email;

}
